/**
 * @param {number} target
 * @return {number[][]}
 */
var findContinuousSequence = function (target) {
	if (target < 3) {
		return [];
	}
	let res = [];
	for (let i = 1; i < ((target + 1) >> 1); i++) {
		const end = (-1 + Math.sqrt((1 + 4 * (i * i - i + 2 * target)))) / 2;
		if (parseInt(end) === end) {
			const arr = Array.from({ length: (end - i + 1) }, (item, index) => (index + i));
			res.push(arr);
		}
	}
	return res;
};

console.log(findContinuousSequence(9));